#ifndef __CONNECT_DMA_H
#define __CONNECT_DMA_H

#include "main.h"

void UART_DMA_Init(void);
void UART_Send_DMA(const char *format, ...);
void UART_ProcessReceivedData(uint8_t *data, uint16_t len);

extern uint8_t uart_rx_buffer[128];
extern volatile uint16_t uart_rx_len;
extern volatile uint8_t uart_rx_flag;
extern UART_HandleTypeDef huart1;;

#endif
